package com.glorystone.ins.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * Created by wangwei on 2018/3/14.
 */
public @Data class CreditRecord {

    private Long tid;
    private Long creditId;
    private Long channelId;
    private Long orderId;
    private Integer type;
    private BigDecimal operateAmount;
    private String remark;
    private Long createBy;
    private LocalDateTime createAt;


    public enum TypeEnum {

        // 1.使用 2.返还
        DECREASE(1),
        INCREASE(2);

        private int value;
        private int getValue() {
            return value;
        }
        TypeEnum(int value) {
            this.value = value;
        }
    }
}
